<?php
/*********************/
/*                   */
/*  Version : 5.1.0  */
/*  Author  : RM     */
/*  Comment : 071223 */
/*                   */
/*********************/

class yswarranty_member_menuextends
{

	public function __construct( $app )
	{
		$this->app = $app;
	}
	public function get_extends_menu( &$arr_menus, $args = array( ) )
	{
		$arr_extends = array( );
		$_b=$this->app->getConf( "site.is_open_yswarranty" );
		if ($_b)
		{
			$arr_extends = array(
					array(
							"label" => $this->app->_( "我的商品註冊" ),
							"mid" => 6,
							"items" => array(
									array(
											"label" => $this->app->_( "商品註冊" ),
											"app" => "yswarranty",
											"ctl" => "site_mywarranty",
											"link" => "warranty_policy",
											"args" => $args
									),
									array(
											"label" => $this->app->_( "註冊商品列表" ),
											"app" => "yswarranty",
											"ctl" => "site_mywarranty",
											"link" => "listwarranties",
											"args" => $args
									)
							)
					)
			);
			//$arr_menus = array_merge( $arr_menus, $arr_extends );
			$arr_menus = array_merge(array_slice($arr_menus, 0, 1), $arr_extends, array_slice($arr_menus,1));
			return true;
		}
		return false;
	}

}

?>
